{% extends "enterprise/base.html" %}
{% block css %}
{% endblock %}
{% block content %}
            <script type="text/javascript">
                var primary_menu = "menu_0";
                var sub_menu = "menu_0_2";
            </script>
            <div class="col-md-12">
                </div>
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>一、水环境保护目标信息</h3></div>

                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                            <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                        </div>
                        <div class="stay_right">
                        {% ifequal fillModel 'finish' %}
                               <a href="javascript:;" class="bg"><button type="button" class="btn btn-success"> 已完成 </button></a>
                        {% else %}
                            <a href="/basic/prevention_water/edit/" class="btn btn-success">
                                {% ifequal water.submit_type '1'%}
                                    已确认
                                {% else %}
                                    未确认
                                {% endifequal %}
                            </a>
                        {% endifequal %}
{#                            <a href="/basic/prevention_water/edit/" class="btn btn-info">修改</a>#}
                        </div>
                    </div>
                    <div class="panel-body with-table">

                    <table class="table table-bordered table-responsive">
                    <tr>
                        <th width=200>周边是否存在水环境保护目标</th>
                        {%if water_est%}
                        <td colspan=4>是 </td>
                        {%else%}
                        <td colspan=4>否</td>
                        {% endif %}
                    </tr>
                    <tr>
                        <th>序号</th>
                        <th class="show_border_left">水环境保护目标名称</th>
                        <th class="show_border_left">方位</th>
                        <th class="show_border_left">距离厂界距离（米）</th>
                        <th class="show_border_left">环境质量功能类别</th>
                    </tr>
                    {%if wdetails%}
                    {%for detail in wdetails%}
                    <tr>
                        <td>{{forloop.counter}}</td>
                        <td class="show_border_left">{{detail.water_name}}</td>
                        <td class="show_border_left">{{detail.water_code}}</td>
                        
                        <td class="show_border_left">{{detail.water_distance}}</td>
                        <td class="show_border_left">{{detail.water_scale}}</td>
                    </tr>
                    {% endfor %}
                    {% endif %}
                    <tr>
                        <th>备注</th>
                        <td colspan=4 class="show_border_left">{{water.water_remark}}</td>
                    </tr>
                    </table>

                    </div>
                </div>
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>二、大气环境保护目标信息</h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                            <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                        </div>
                        <div class="stay_right">

                              {% ifequal fillModel 'finish' %}
                                     <a href="javascript:;" class="bg"><button type="button" class="btn btn-success"> 已完成 </button></a>
                        {% else %}
                                   <a href="/basic/prevention_gas/edit/" class="btn btn-success">
                                {% ifequal gas.submit_type '1'%}
                                   已确认
                                {% else %}
                                    未确认
                                {% endifequal %}

                            </a>
                         {% endifequal %}
{#                            <a href="/basic/prevention_gas/edit/" class="btn btn-info">修改</a>#}
                        </div>
                    </div>
                    <div class="panel-body with-table">

                            <table class="table table-bordered table-responsive">
                                <tr style="border-top:1px solid #e5e5e5;">
                                    <!-- <th colspan=2>环境空气功能区分类</th>
                                     {%if gas.gas_specie == 1%}
                                    <td>一类区 </td>
                                    {%else%}
                                    <td>二类区</td>
                                    {% endif %} -->
                                    <th width="230"  class="show_border_left">周边是否存在大气环境保护目标</th>
                                    {%if gas.gas_exist%}
                                    <td colspan=4>是</td>
                                    {%else%}
                                    <td colspan=4>否</td>
                                    {% endif %}
                                </tr>
                                <tr>
                                    <th>序号</th>
                                    <th class="show_border_left">大气环境保护目标名称</th>
                                    <th class="show_border_left">方位</th>
                                    <th class="show_border_left">规模(人)</th>
                                    <th class="show_border_left">距厂界距离（米）</th>
                                    <th class="show_border_left">环境质量功能类别</th>

                                </tr>
                                {%if gdetails%}
                    			{%for detail in gdetails%}
                                <tr>
                                    <td>1</td>
                                    <td class="show_border_left">{{detail.gas_name}}</td>
                                    <td class="show_border_left">{{detail.gas_code}}</td>
                                    <td class="show_border_left">{{detail.gas_scale}}</td>
                                    <td class="show_border_left">{{detail.gas_distance}}</td>
                                    <td class="show_border_left">{{detail.gas_type}}</td>
                                </tr>
                                {% endfor %}
                    			{% endif %}
                                <tr>
                                    <th>备注</th>
                                    <td colspan=5 class="show_border_left">{{gas.gas_remark}}</td>
                                </tr>
                            </table>

                    </div>
                </div>
                 <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>三、生态环境保护目标 </h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                            <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                        </div>
                        <div class="stay_right">

                                 {% ifequal fillModel 'finish' %}
                                     <a href="javascript:;" class="bg"><button type="button" class="btn btn-success"> 已完成 </button></a>
                                {% else %}
                                      <a href="/basic/ecological/edit/" class="btn btn-success">
                                {% ifequal eco_status '1'%}
                                   已确认
                                {% else %}
                                    未确认
                                {% endifequal %}
                                     </a>
                            {% endifequal %}

{#                            <a href="/basic/ecological/edit/" class="btn btn-info">修改</a>#}
                        </div>
                    </div>
                    <div class="panel-body with-table">

                            <table class="table table-bordered table-responsive">
                                 <tr>
                                    <th colspan="2">周边是否存在生态环境保护目标</th>

                                     <td colspan="5">{%if edetailes%}
                                         是
                                         {% else %}
                                         否
                                     {% endif %}</td>
                                </tr>
                                <tr>
                                    <th>序号</th>
                                    <th class="show_border_left">生态环境保护目标名称</th>
                                    <th class="show_border_left">方位</th>
                                    <th class="show_border_left">距厂界距离（米）</th>
                                </tr>
                                {%if edetailes%}
                                {%for detail in edetailes%}
                                <tr>
                                    <td>1</td>
                                    <td class="show_border_left">{{ detail.name }}</td>
                                    <td class="show_border_left">{{ detail.gas_code }}</td>
                                    <td class="show_border_left">{{ detail.gas_distance }}</td>
                                </tr>
                                {% endfor %}
                                {% endif %}
                            </table>

                    </div>
                </div>
            </div>


{% endblock %}

{% block js %}
{% endblock %}